<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="pageContent">
	<form method="post" action="<c:url value='/user/edit?navTabId=userList&callbackType=closeCurrent'/>"
		class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<input type="hidden" name="id" value="${user.id}" />
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>用户名：</label> <input name="username" class="required" type="text" size="30" value="${user.username}"
					readonly="true" />
			</p>
			<p>
				<label>密码：</label> <input name="password" class="required" type="password" size="30" value="${user.password}" />
			</p>
			<p>
				<label>姓名：</label> <input name="realname" class="required" type="text" size="30" value="${user.realname}" />
			</p>
			<p>
				<label>职务：</label> <select name="role" class="required combox">
					<c:forEach var="item" items="${roleList}">
						<option value="${item.role}" ${item.role eq user.role ? 'selected="selected"' : ''}>${item.role}</option>
					</c:forEach>
				</select>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">确定</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
